def driving(xinyuu2_key,origin,destination,city,):
    driving_url = "https://restapi.amap.com/v3/direction/driving?parameters"
    params ={
        "key":xinyuu2_key,
        "origin":origin,
        "destination":destination,
        "city":city
    }
    r = requests.get(driving_url,params=params)
    result = r.json()
    return result